<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="box"> 
			<input type="text" value="按钮" @keydown="show($event)"/>
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#box',
				data: {
				   
				},
				methods:{
					show:function(ev){
						alert(ev.keyCode)
					}
				}
			})
		</script>
	</body>
</html>
